package pyx.crazycards.game.cards;

import java.io.Serializable;

/**
 * Represents a play move, made by player replied by the server.
 * 
 * @see PlayMoveType
 * @see Play
 * @author Abraao Isvi
 */
public class PlayMove implements Serializable {
	
	private static final long serialVersionUID = 8574681386641951706L;
	
	private PlayMoveType type;
	
	private Object value;
	
	private Card origin;
	
	private Card target;// code
	
	public PlayMove(PlayMoveType type) {
		super();
		this.type = type;
		this.value = null;
	}
	
	public PlayMoveType getType() {
		return type;
	}
	
	public void setType(PlayMoveType type) {
		this.type = type;
	}
	
	public Object getValue() {
		return value;
	}

	public void setValue(Object value) {
		this.value = value;
	}

	public Card getTarget() {
		return target;
	}
	
	public void setTarget(Card target) {
		this.target = target;
	}
	
	public Card getOrigin() {
		return origin;
	}
	
	public void setOrigin(Card origin) {
		this.origin = origin;
	}
	
}
